import * as types from './mutations_types';

module.exports = {
	update_new_list: ({
		commit
	}, list=[]) => {
		return new Promise((resolve, reject) => {
			commit(types.UPDATE_NEW_LIST, list);
			resolve();
		})
	},
	insert_new_list: ({
		commit
	}, opt={item:'', size:0}) => {
		return new Promise((resolve, reject) => {
			commit(types.INSERT_NEW_LIST, opt);
			resolve();
		})
	}
}
